package com.yuju.order.dao.mapper;

import com.yuju.order.dao.entity.Reserve;
import com.yuju.persist.base.mapper.BaseMapper;
import java.util.List;
import java.util.Map;

public interface ReserveMapper extends BaseMapper<Reserve, String> {
    int deleteByPrimaryKey(String id);

    int selectCountByMap(Map<Object, Object> map);

    List<Reserve> selectListByMap(Map<Object, Object> map);

    int insert(Reserve record);

    int insertSelective(Reserve record);

    Reserve selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Reserve record);

    int updateByPrimaryKey(Reserve record);

	List<Reserve> dueToArriveIn(Map<Object, Object> map);
	/**
	 * 查询预订房型的统计数据   粒度 房型
	 * 功能：<br/>
	 *
	 * @author sunyl
	 * @Date 2018年1月31日 下午12:00:07 <br/>
	 */
	List<Map<String,Object>> selectReserveCountInfo(Map<Object, Object> map);
}